package com.atguigu07._abstract.exer2;

/**
 * ClassName: Employee
 * Package: com.atguigu07._abstract.exer2
 * Description:
 *
 * @Author xiao_qi
 * @Create 2024/9/3 20:55
 * @Version 1.0
 */
public abstract class Employee {
    private String name;
    private int number;
    private MyDate birthday;

    public Employee() {
        this.name = name;
        this.number = number;
        this.birthday = birthday;
    }

    public Employee(String name, int number, MyDate birthday) {
        this.name = name;
        this.number = number;
        this.birthday = birthday;
    }
    public MyDate getBirthday() {
        return birthday;
    }

    public abstract int earnings();
    public String toString(){
        return "name = " + name + ",number = " + number +
                ", birthday = " + birthday.toDateString();
    }
}
